package com.yuyuan.blog.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Event {
    private String topic;
    private long userId;
    private long entityType;
    private long entityId;
    private long entityUserId;
    private Object data;
    private String objectType;
    public Event(String topic, long userId, long entityType, long entityId, Object data, String objectType) {
        this.topic = topic;
        this.userId = userId;
        this.entityType = entityType;
        this.entityId = entityId;
        this.data = data;
        this.objectType = objectType;
    }

}
